package com.itheima.service;

import com.itheima.entity.AddressBook;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
public interface AddressBookService {

    Integer add(AddressBook addressBook);

    Integer setDefault(AddressBook addressBook);

    AddressBook get(Long id);

    AddressBook getDefault(AddressBook addressBook);

    List<AddressBook> list(AddressBook addressBook);

    void updateById(AddressBook addressBook);

    boolean removeByIds(List<Long> ids);
}
